.form {
  width: 100%;
  display: block;

  &__row {
    display: grid;
    justify-items: stretch;
    justify-content: space-between;
    grid-template-columns: repeat(var(--column-count, 5), 1fr);
    grid-column-gap: 16px;
    grid-row-gap: var(--row-gap, 16px);

    &:not(:first-child) {
      margin-top: 12px;
    }

    &_spread .label {
      width: 100%;
    }
  }

  &__submit {
    display: flex;
    margin-top: 32px;
    align-items: center;
    justify-content: space-between;

    &+.inline-error {
      margin-top: 32px;
    }

    &_size {
      &_small {
        margin-top: 16px;
      }
    }
  }

  &__info {
    display: flex;
    align-items: center;
    color: #d00;
    font-size: 14px;
    line-height: 22px;

    &_valid {
      color: var(--black_40);
    }
  }

  &__column {
    display: grid;
    grid-auto-flow: column;
    align-items: flex-start;
  }
}

.form-input,
.textarea,
.counter,
.form-select__list {

  &:not(&_ghost):focus,
  &_focused {
    outline: none;
    box-shadow: 0px 0px 0px 6px rgba(var(--accent_color-raw), 0.2), inset 0px -1px 0px var(--black_10), inset 0px 0px 0px 1px var(--black_15), inset 0px 0px 0px 1px rgba(var(--accent_color-raw), 0.2);
    border-color: rgba(var(--accent_color-raw), 0.2);
  }
}

.form-indicator {
  font-weight: 500;

  &__item {
    &_type {
      &_success {
        color: #59aa05;
      }

      &_fail {
        color: var(--danger_color);
      }
    }
  }
}
